package models

import "gorm.io/gorm"

type Video struct {
	gorm.Model
	UserId     int    `gorm:"type:int(20);not null;comment:'用户Id'"`
	Title      string `gorm:"type:varchar(255);not null;comment:'标题'"`
	Context    string `gorm:"type:varchar(255);not null;comment:'内容'"`
	GoodNum    int    `gorm:"type:int(20);comment:'点赞数量'"`
	CommentNum int    `gorm:"type:int(20);comment:'评论数量'"`
	CType      int    `gorm:"type:int(20);not null;comment:'类型 : 1:文本 2:图片 3:视频'"`
}
